package com.auxteam.elope;

import com.auxteam.elope.activities.ExampleListActivity;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.widget.Toast;

public class SplashScreenActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_splash_screen);
		
		Thread splashScreenElope = new Thread(){
			public void run(){
				try{
					sleep(3000);
				}catch(Exception e){
					e.printStackTrace();
				}finally{
					startActivity(new Intent(getApplicationContext(), VideoSplashActivity.class));
					finish();
				}
			}
		};
		splashScreenElope.start();
	}

	@Override
	public void onBackPressed() {
		Toast.makeText(getApplicationContext(), "Please wait for the Application to Load", Toast.LENGTH_SHORT).show();
	}
	
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.splash_screen, menu);
		return true;
	}

}
